

all: run

.PHONY: build
build: tidy
	@echo "Building..."
	@GOOS=linux go build -o build/openSesame main.go
	

.PHONY: clean run
run: build
	@echo "Running..."
	@cd build;./openSesame

.PHONY: clean
clean:
	@echo "Cleaning..."
	@rm -rf build/openSesame

.PHONY: tidy
tidy:
	@echo "Tidying..."
	@go mod tidy

.PHONY: release
release: build
	@echo "Releasing..."
	@upx -9 build/openSesame
	@cd build;tar -czvf openSesame.tar.gz openSesame 